package com.chief.dubboFeign;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableDubbo
@EnableFeignClients
//一定要注意此注解的扫描范围,要不然会把其他接口装饰成mybatis的接口
@MapperScan("com.chief.**.mapper")
@SpringBootApplication
public class DubboFeignServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(DubboFeignServiceApplication.class, args);
    }
}
